package com.example.luke.shengdangxiaoattendance.Model;

import android.content.Context;

/**
 * Created by luke on 23/12/2016.
 */

public class MICard {

    public static final String DH_TABLE_NAME = "IssueCardList";


    public  static final String DH_Card_ID = "cardId";

    public static final String DH_Card_Name = "Name";//会员姓名
    public  static final String DH_Card_phone = "phone";
    public  static final String DH_Card_gender = "gender";
    public  static final String DH_Card_cardType= "cardType";
    public  static final String DH_Card_expiredDate = "expiredDate";
    public  static final String DH_Card_birthDate = "birthDate";
    public  static final String DH_Card_issueDateTime = "issueDateTime";
    public  static final String DH_Card_currentBalance = "currentBalance";

    public   static final String DH_CREATE_TABLE="CREATE TABLE " + DH_TABLE_NAME + "(  " +DH_Card_ID + " INTEGER PRIMARY KEY AUTOINCREMENT,"+
             DH_Card_Name +" TEXT," + DH_Card_phone + " TEXT," + DH_Card_gender + " TEXT,"
            + DH_Card_cardType + " TEXT," + DH_Card_expiredDate + " TEXT," + DH_Card_birthDate + " TEXT,"+ DH_Card_issueDateTime + " TEXT,"
            +DH_Card_currentBalance+ " DOUBLE"+")";


    public String cardID;
    public String name;
    public String phone;
    public String gender;
    public String cardType;
    public String expiredDate;
    public String birthDate;
    public Double currentBalance;
    public String issueDateTime;


//    public static void   insertData(Context context, MICard card){
//
//        DingHanDB.getInstance(context).insert(DH_TABLE_NAME,card);
//
//    }
}
